package cn.chia.pojo;

/**
 * IteminfoviewId entity.
 * @author modifed by 莫庆来
 */

public class IteminfoviewId implements java.io.Serializable {

	// Fields

	private static final long serialVersionUID = 1L;
	private String itemId;
	private String itemName;
	private String cataName;
	private String itemPic;
	private double retailPrice;
	private double importPrice;
	private double exportPrice;
	private long importAmount = 0L;
	private Integer oimAmount = 0;
	private Integer oexAmount = 0;
	private long exportAmount = 0L;
	private long stocks = 0L;
	private String suppName;
	private String phone;
	private String contactPerson;
	private String unitName;
	private String note;
	private String activityName;
	private String startTime;
	private String endTime;
	private float discount;
	private float fullCount;
	private float substractCount;
	private String typeName;

	// Constructors

	/** default constructor */
	public IteminfoviewId() {
	}

	/** minimal constructor */
	public IteminfoviewId(String itemId, String itemName, double retailPrice,
			double importPrice, double exportPrice, long importAmount,
			long exportAmount, long stocks, String suppName, String phone,
			String contactPerson, String unitName, String activityName,
			String startTime, String endTime, float discount, float fullCount,
			float substractCount, String typeName) {
		this.itemId = itemId;
		this.itemName = itemName;
		this.retailPrice = retailPrice;
		this.importPrice = importPrice;
		this.exportPrice = exportPrice;
		this.importAmount = importAmount;
		this.exportAmount = exportAmount;
		this.stocks = stocks;
		this.suppName = suppName;
		this.phone = phone;
		this.contactPerson = contactPerson;
		this.unitName = unitName;
		this.activityName = activityName;
		this.startTime = startTime;
		this.endTime = endTime;
		this.discount = discount;
		this.fullCount = fullCount;
		this.substractCount = substractCount;
		this.typeName = typeName;
	}

	/** full constructor */
	public IteminfoviewId(String itemId, String itemName, String cataName,
			String itemPic, double retailPrice, double importPrice,
			double exportPrice, long importAmount, Integer oimAmount,
			Integer oexAmount, long exportAmount, long stocks, String suppName,
			String phone, String contactPerson, String unitName, String note,
			String activityName, String startTime, String endTime,
			float discount, float fullCount, float substractCount,
			String typeName) {
		this.itemId = itemId;
		this.itemName = itemName;
		this.cataName = cataName;
		this.itemPic = itemPic;
		this.retailPrice = retailPrice;
		this.importPrice = importPrice;
		this.exportPrice = exportPrice;
		this.importAmount = importAmount;
		this.oimAmount = oimAmount;
		this.oexAmount = oexAmount;
		this.exportAmount = exportAmount;
		this.stocks = stocks;
		this.suppName = suppName;
		this.phone = phone;
		this.contactPerson = contactPerson;
		this.unitName = unitName;
		this.note = note;
		this.activityName = activityName;
		this.startTime = startTime;
		this.endTime = endTime;
		this.discount = discount;
		this.fullCount = fullCount;
		this.substractCount = substractCount;
		this.typeName = typeName;
	}

	// Property accessors

	public String getItemId() {
		return this.itemId;
	}

	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

	private String getItemName() {
		return this.itemName;
	}


	private String getCataName() {
		return this.cataName;
	}


	private String getItemPic() {
		return this.itemPic;
	}


	private double getRetailPrice() {
		return this.retailPrice;
	}


	private double getImportPrice() {
		return this.importPrice;
	}


	private double getExportPrice() {
		return this.exportPrice;
	}


	private long getImportAmount() {
		return this.importAmount;
	}

	private Integer getOimAmount() {
		return this.oimAmount;
	}


	private Integer getOexAmount() {
		return this.oexAmount;
	}


	private long getExportAmount() {
		return this.exportAmount;
	}

	private long getStocks() {
		return this.stocks;
	}


	private String getSuppName() {
		return this.suppName;
	}


	private String getPhone() {
		return this.phone;
	}


	private String getContactPerson() {
		return this.contactPerson;
	}


	private String getUnitName() {
		return this.unitName;
	}


	private String getNote() {
		return this.note;
	}


	private String getActivityName() {
		return this.activityName;
	}


	private String getStartTime() {
		return this.startTime;
	}

	private String getEndTime() {
		return this.endTime;
	}

	private float getDiscount() {
		return this.discount;
	}


	private float getFullCount() {
		return this.fullCount;
	}

	private float getSubstractCount() {
		return this.substractCount;
	}


	private String getTypeName() {
		return this.typeName;
	}


	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof IteminfoviewId))
			return false;
		IteminfoviewId castOther = (IteminfoviewId) other;

		return ((this.getItemId() == castOther.getItemId()) || (this
				.getItemId() != null && castOther.getItemId() != null && this
				.getItemId().equals(castOther.getItemId())))
				&& ((this.getItemName() == castOther.getItemName()) || (this
						.getItemName() != null
						&& castOther.getItemName() != null && this
						.getItemName().equals(castOther.getItemName())))
				&& ((this.getCataName() == castOther.getCataName()) || (this
						.getCataName() != null
						&& castOther.getCataName() != null && this
						.getCataName().equals(castOther.getCataName())))
				&& ((this.getItemPic() == castOther.getItemPic()) || (this
						.getItemPic() != null && castOther.getItemPic() != null && this
						.getItemPic().equals(castOther.getItemPic())))
				&& (this.getRetailPrice() == castOther.getRetailPrice())
				&& (this.getImportPrice() == castOther.getImportPrice())
				&& (this.getExportPrice() == castOther.getExportPrice())
				&& (this.getImportAmount() == castOther.getImportAmount())
				&& ((this.getOimAmount() == castOther.getOimAmount()) || (this
						.getOimAmount() != null
						&& castOther.getOimAmount() != null && this
						.getOimAmount().equals(castOther.getOimAmount())))
				&& ((this.getOexAmount() == castOther.getOexAmount()) || (this
						.getOexAmount() != null
						&& castOther.getOexAmount() != null && this
						.getOexAmount().equals(castOther.getOexAmount())))
				&& (this.getExportAmount() == castOther.getExportAmount())
				&& (this.getStocks() == castOther.getStocks())
				&& ((this.getSuppName() == castOther.getSuppName()) || (this
						.getSuppName() != null
						&& castOther.getSuppName() != null && this
						.getSuppName().equals(castOther.getSuppName())))
				&& ((this.getPhone() == castOther.getPhone()) || (this
						.getPhone() != null && castOther.getPhone() != null && this
						.getPhone().equals(castOther.getPhone())))
				&& ((this.getContactPerson() == castOther.getContactPerson()) || (this
						.getContactPerson() != null
						&& castOther.getContactPerson() != null && this
						.getContactPerson()
						.equals(castOther.getContactPerson())))
				&& ((this.getUnitName() == castOther.getUnitName()) || (this
						.getUnitName() != null
						&& castOther.getUnitName() != null && this
						.getUnitName().equals(castOther.getUnitName())))
				&& ((this.getNote() == castOther.getNote()) || (this.getNote() != null
						&& castOther.getNote() != null && this.getNote()
						.equals(castOther.getNote())))
				&& ((this.getActivityName() == castOther.getActivityName()) || (this
						.getActivityName() != null
						&& castOther.getActivityName() != null && this
						.getActivityName().equals(castOther.getActivityName())))
				&& ((this.getStartTime() == castOther.getStartTime()) || (this
						.getStartTime() != null
						&& castOther.getStartTime() != null && this
						.getStartTime().equals(castOther.getStartTime())))
				&& ((this.getEndTime() == castOther.getEndTime()) || (this
						.getEndTime() != null && castOther.getEndTime() != null && this
						.getEndTime().equals(castOther.getEndTime())))
				&& (this.getDiscount() == castOther.getDiscount())
				&& (this.getFullCount() == castOther.getFullCount())
				&& (this.getSubstractCount() == castOther.getSubstractCount())
				&& ((this.getTypeName() == castOther.getTypeName()) || (this
						.getTypeName() != null
						&& castOther.getTypeName() != null && this
						.getTypeName().equals(castOther.getTypeName())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getItemId() == null ? 0 : this.getItemId().hashCode());
		result = 37 * result
				+ (getItemName() == null ? 0 : this.getItemName().hashCode());
		result = 37 * result
				+ (getCataName() == null ? 0 : this.getCataName().hashCode());
		result = 37 * result
				+ (getItemPic() == null ? 0 : this.getItemPic().hashCode());
		result = 37 * result + (int) this.getRetailPrice();
		result = 37 * result + (int) this.getImportPrice();
		result = 37 * result + (int) this.getExportPrice();
		result = 37 * result + (int) this.getImportAmount();
		result = 37 * result
				+ (getOimAmount() == null ? 0 : this.getOimAmount().hashCode());
		result = 37 * result
				+ (getOexAmount() == null ? 0 : this.getOexAmount().hashCode());
		result = 37 * result + (int) this.getExportAmount();
		result = 37 * result + (int) this.getStocks();
		result = 37 * result
				+ (getSuppName() == null ? 0 : this.getSuppName().hashCode());
		result = 37 * result
				+ (getPhone() == null ? 0 : this.getPhone().hashCode());
		result = 37
				* result
				+ (getContactPerson() == null ? 0 : this.getContactPerson()
						.hashCode());
		result = 37 * result
				+ (getUnitName() == null ? 0 : this.getUnitName().hashCode());
		result = 37 * result
				+ (getNote() == null ? 0 : this.getNote().hashCode());
		result = 37
				* result
				+ (getActivityName() == null ? 0 : this.getActivityName()
						.hashCode());
		result = 37 * result
				+ (getStartTime() == null ? 0 : this.getStartTime().hashCode());
		result = 37 * result
				+ (getEndTime() == null ? 0 : this.getEndTime().hashCode());
		result = 37 * result + (int) this.getDiscount();
		result = 37 * result + (int) this.getFullCount();
		result = 37 * result + (int) this.getSubstractCount();
		result = 37 * result
				+ (getTypeName() == null ? 0 : this.getTypeName().hashCode());
		return result;
	}

}